package cn.kb05;

/*
 * @author:LGQ
 * @Description: 截取打印一首诗
 * @date: 2019/12/2
 * */
public class Home {
    public static void main(String[] args) {
        System.out.println("***********************歌词调格式*******************");
        System.out.println("***************原歌词格式*************");
        String str = "{'长亭外,古道边,芳草碧连天,晚风拂,柳笛声残,夕阳山外山,'}";

        String s1 = str.substring(2,str.length()-2);
        String s2 =s1.replace(',',' ');

        System.out.println(s2);
        System.out.println("***************拆分歌词后格式*************");
        for (Object obj:s2.split(" ")){
        System.out.println(obj);}


    }
}
